package exttable.testversioning;

import exttable.view.ViewAnalysis;
import exttable.view.ViewAnalysisParameter;
import exttable.view.ViewPhases;
import exttable.view.ViewVersion;

import javax.swing.*;
import java.util.Vector;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: Jul 2, 2010
 * Time: 10:46:21 AM
 * To change this template use File | Settings | File Templates.
 */
public interface IDBUtils {
    boolean saveAnalysisInPhases(JTable unitTable, ViewPhases vp);

    Vector<ViewPhases> getPhases();

    boolean  processAnalysisInPhases(JTable unitTable, ViewPhases phase);

    ViewVersion getVersion(int analysisId) throws Exception;

    boolean saveData(Vector<ViewAnalysisParameter> resultParameters, ViewAnalysis va, ViewVersion vv);

    int getAmountOfVersions(ViewAnalysis analysis);

    Vector<ViewVersion> getVersions(ViewAnalysis analysis);
}
